from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view(), name='areas'),  # 省市区数据url
    url(r'^address/create/$', views.CreateAddressView.as_view(), name='createaddress'),  # 添加收货地址
    url(r'^address/(?P<address_id>\d+)/$', views.UpdateDestroyAddressView.as_view(), name='updateaddress'),  # 修改收货地址
    url(r'^address/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view(), name='defaultaddress'),  # 设置默认地址
    url(r'^address/(?P<address_id>\d+)/title/$', views.UpdateTitleAddressView.as_view(), name='titleaddress'),  # 设置地址标题
]
